Skip to content

Handling raw data obtained from Android's ScanRecord.getBytes#10

Open
kaorukobo wants to merge 3 commits intotessel:masterfrom
kaorukobo:for-android-scanrecord-bytes
Open

Handling raw data obtained from Android's ScanRecord.getBytes#10
kaorukobo wants to merge 3 commits intotessel:masterfrom
kaorukobo:for-android-scanrecord-bytes

Conversation

@kaorukobo
Copy link
Copy Markdown

@kaorukobo kaorukobo commented Nov 7, 2021

Thanks for providing the nice library.

I have utilized the lib to analyze the raw AdvData obtained from android.bluetooth.le.ScanRecord.getBytes.

To fit that purpose without any modification of input, I propose two changes on parse() and split():

  • Handle the trailing zero-padding bytes.
  • Add noPayloadLength option as the 4th parameter of parse().

Example of data from android.bluetooth.le.ScanRecord.getBytes

1a ff 4c 00 02 15 50 76 5c b7 d9 ea 4e 21 99 a4 fa 87 96 13 a4 92 b2 c9 64 d1 ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(iBeacon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant